<template>
	<view class="entry_score_detail_view">
		<view class="pt_box">
			<sy-school1 :cItem="cItem"></sy-school1>
		</view>
		<view class="u_table_box">
			<view class="t_table_sy">
				<view class="tr_d header_x2">
					<view class="c1">
						年份
					</view>
					<view class="c2">
						最低分数
					</view>
				</view>
				<view>
					<view class="tr_d" v-for="item in tableData">
						<view class="c1">
							{{item.text}}
						</view>
						<view class="c2">
							{{item.score}}
						</view>
					</view>
				</view>
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cItem:{img:"../../../static/home/da1.png",title:"清华附121中湾区学校",typeList:['公办','天河区','高中']},
				tableData:[]
			};
		},
		onLoad(ph) {
			this.cItem = JSON.parse(ph.item) 
			console.log(this.cItem,"this.cItem")
			this.getScore(this.cItem.id)
		},
		methods:{
			getScore(id){
				
				this.$queryApi("post","/school.school/score?id="+id, {}, res => {
					console.log(res,"学区类型")
					this.tableData = res.data.score
				},"","noMsg")
			}
		}
	}
</script>

<style lang="scss">
.entry_score_detail_view{
	padding: 20rpx 30rpx;
	background-color: #fff;
	min-height: 100vh;
	box-sizing: border-box;
}
</style>
